<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/Mall_work.js此处编写
 -->
 <template>
  <div>
      <view-grid
                 ref="grid"
                 :columns="columns"
                 :detail="detail"
                 :editFormFields="editFormFields"
                 :editFormFileds="editFormFields"
                 :editFormOptions="editFormOptions"
                 :searchFormFields="searchFormFields"
                 :searchFormFileds="searchFormFields"
                 :searchFormOptions="searchFormOptions"
                 :table="table"
                 :extend="extend">
      </view-grid>
  </div>
</template>

<script>
  import extend from "@/extension/system/flow/Mall_work.js";
  import ViewGrid from "@/components/basic/ViewGrid.vue";
  var vueParam = {
      components: {
          ViewGrid
      },
      data() {
          return {
              table: {
                  key: 'id',
                  footer: "Foots",
                  cnName: '审批流程配置',
                  name: 'Mall_work',
                  url: "/Mall_work/",
                  sortName: "createDate"
              },
              extend: extend,
              editFormFields: {},
              editFormOptions: [],
              searchFormFields: {"workName":"","distributorCode":""},
              searchFormOptions: [[ { "title": "流程名称", "field": "workName", "type": "text" }]],
              columns: [
                     {field:'workName',title:'流程名称',type:'string',width:220,align:'left'},
                     {field:'workTable',title:'表名',type:'string',width:120,align:'left'},
                     {field:'workType',title:'工作流类型',type:'string',width:220,align:'left', bind: { key: 'Approval_process_type', data: [] },},
                     {field:'bindingName',title:'名称',type:'string',width:220,align:'left', },
                     {field:'elapsedTime',title:'是否启用',type:'int',width:90,align:'left'},
                     {field:'remark',title:'备注',type:'datetime',width:90,align:'left',sortable:true},
                     {field:'creator',title:'创建人',type:'datetime',width:90,align:'left',sortable:true},
                     {field:'createDate',title:'创建时间',type:'string',width:90,align:'left'},
                     {field:'modifier',title:'修改人',type:'string',width:90,align:'left'},
                     {field:'modifyDate',title:'修改时间',type:'string',width:90,align:'left'},
                     
                     ],
              detail: {
                  cnName:"#detailCnName",
                  columns: [],
                  sortName: "",
                  key:""
              }
          };
      }
  };
  export default vueParam;
</script>
